package com.fushenlan.commons;

/**
 * @author PC
 * @title: ApiGlobalErrorDefinition
 * @projectName SpringBootDemo
 * @description: 统一错误码规范
 * @date 2022/1/21 14:15
 */
public class ApiGlobalErrorDefinition {
    public static final String SUCCESS_CODE = "0000";
    public static final String HANDLING_CODE = "5555";
    public static final String SYS_BUSY_TRY_AGAIN = "系统出错，请联系管理员";
    public static final String NEED_LOGIN = "登录已过期，请重新登录";
    public static final ErrorStatus SUCCESS_REQ = new ErrorStatus("0000", "请求处理唱功响应");
    public static final ErrorStatus HANDLING_BUSI = new ErrorStatus("5555", "系统处理失败，请稍后重试");
    public static final ErrorStatus UNKNOWN_ERROR = new ErrorStatus("9999", "系统出错，请联系管理员");
    public static final ErrorStatus DATA_ACCESS_EXCEPTION_ERROR = new ErrorStatus("9998", "系统出错，请联系管理员");
    public static final ErrorStatus IO_EXCEPTION_ERROR = new ErrorStatus("9997", "系统出错，请联系管理员");
    public static final ErrorStatus REQ_VALIDATION_ERROR = new ErrorStatus("9996", "系统出错，请联系管理员");
    public static final ErrorStatus REQ_SERVICE_UNAVAILABLE = new ErrorStatus("9995", "系统出错，请联系管理员");
    public static final ErrorStatus GATEWAY_ERROR = new ErrorStatus("9992", "网关异常");
    public static final String NORMAL_ERROR_CODE = "9898";
    public static final ErrorStatus ERROR_RSP = new ErrorStatus("9898", "系统内部错误", "系统出错，请稍后再试");
    public static final ErrorStatus INVALID_ACCESS = new ErrorStatus("9799", "非法访问", "系统出错，请稍后再试");
    public static final ErrorStatus INVALID_SECRECT_CODE = new ErrorStatus("9798", "无效的SecrectKey", "非法访问");
    public static final ErrorStatus TOKEN_EMPTY = new ErrorStatus("9797", "token缺失", "登录已过期，请重新登录");
    public static final ErrorStatus TOKEN_INVALID = new ErrorStatus("9796", "无效token", "登录已过期，请重新登录");
    public static final ErrorStatus TOKEN_EXPIRED = new ErrorStatus("9795", "token过期", "登录已过期，请重新登录");
    public static final ErrorStatus TOKEN_NOT_EXIST = new ErrorStatus("9794", "token不存在", "登录已过期，请重新登录");
    public static final ErrorStatus TOKEN_HAS_NEW_TERMINAL_LOGIN = new ErrorStatus("9793", "其他设备已登录", "您当前账户已在其他设备登录，如非本人操作，请尽快修改密码");
    public static final ErrorStatus TOKEN_HAS_NEW_IP_LOGIN = new ErrorStatus("9792", "其他IP已登录", "您当前账户已在其他设备登录，如非本人操作，请尽快修改密码");
    public static final ErrorStatus TOKEN_CREATE_ERROR = new ErrorStatus("9792", "token创建失败", "认证获取失败");
    public static final ErrorStatus INVALID_MSG = new ErrorStatus("9791", "无效报文，加解密失败", "登录已过期，请重新登录");
    public static final ErrorStatus BAD_GATEWAY = new ErrorStatus("9790", "网关出错", "系统出错，请联系管理员");
    public static final ErrorStatus REQ_PARAM_ERROR = new ErrorStatus("9789", "请求参数出错", "系统出错，请联系管理员");
    public static final ErrorStatus LIMIT_BLOCK = new ErrorStatus("9788", "当前操作太频繁，请稍后再试", "当前操作太频繁，请稍后再试");
    public static final ErrorStatus BLACKLIST_IP_BLOCK = new ErrorStatus("9787", "当前操作太频繁，你的IP被列为黑名单，请联系管理员进行解锁", "当前操作太频繁，你的IP被列为黑名单，请联系管理员进行解锁");
    public static final ErrorStatus BLACKLIST_USER_BLOCK = new ErrorStatus("9786", "当前操作太频繁，你的ID被列为黑名单，请联系管理员进行解锁", "当前操作太频繁，你的ID被列为黑名单，请联系管理员进行解锁");
    public static final ErrorStatus REQ_METHOD_ERROR = new ErrorStatus("9001", "请求HTTP方法错误");
    public static final ErrorStatus REQ_PARAM_READ_ERROR = new ErrorStatus("9002", "请求参数读取失败");
    public static final ErrorStatus REQ_RUN_WRITE_ERROR = new ErrorStatus("9003", "请求服务器返回信息处理出错");
    public static final ErrorStatus ERROR_REQ_DB_ERROR = new ErrorStatus("9004", "请求服务器DB出错");
    public static final ErrorStatus ERROR_REQ_SESSIONID_NOVALID = new ErrorStatus("9005", "当前登录用户已过期，请重新登录");
    public static final ErrorStatus ERROR_REQ_NO_BLANK = new ErrorStatus("9006", "请求号为空");
    public static final ErrorStatus ERROR_REQ_BODY_BLANK = new ErrorStatus("9007", "请求体为空");
    public static final ErrorStatus ERROR_ACCESSVERIFY_BLANK = new ErrorStatus("9008", "API网关端校验信息为空");
    public static final ErrorStatus ERROR_REPEATREQ = new ErrorStatus("9009", "重复请求");
    public static final ErrorStatus ERROR_REQUEST_BLANK = new ErrorStatus("9010", "请求参数为空");
    public static final ErrorStatus ERROR_REQUEST_ILLEGAL = new ErrorStatus("9011", "非法请求");
    public static final ErrorStatus BIZTOKEN_EMPTY = new ErrorStatus("9012", "请求交易认证缺失，请处理");
    public static final ErrorStatus BIZTOKEN_EXPIRED = new ErrorStatus("9013", "请求交易认证已过期，请重新认证");
    public static final ErrorStatus BIZTOKEN_FAIL = new ErrorStatus("9014", "请求交易认证失败，请重新认证");
    public static final ErrorStatus USER_NOT_EXIST = new ErrorStatus("9301", "用户不存在");
    public static final ErrorStatus ACCT_CHECK_FAIL = new ErrorStatus("9302", "账号或者密码错误");
    public static final ErrorStatus SHORTMSG_INVALID = new ErrorStatus("9303", "短信验证码错误或已失效");
    public static final ErrorStatus SHORTMSG_SEND_FAIL = new ErrorStatus("9304", "短信验证码发送失败");
    public static final ErrorStatus UPLOAD_FILE_OVERSIZE = new ErrorStatus("9305", "上传文件超过限制大小");
    public static final ErrorStatus SHORTMSG_TYPE_INVALID = new ErrorStatus("9306", "短信验证码类型无效");
    public static final ErrorStatus UPLOAD_FILE_UPLOAD_FAIL = new ErrorStatus("9307", "文件上传失败");
    public static final ErrorStatus UPLOAD_FILE_BLANK = new ErrorStatus("9308", "上传文件内容或者文件为空");
    public static final ErrorStatus UPLOAD_FILE_TYPE_ILLEGAL = new ErrorStatus("9309", "上传文件类型为非法类型");
    public static final ErrorStatus UPLOAD_FILE_SUFFIX_BLANK = new ErrorStatus("9310", "上传文件后缀名为空");
    public static final ErrorStatus UPLOAD_FILE_SAVE_FAIL = new ErrorStatus("9311", "上传文件服务器保存失败");
    public static final ErrorStatus FILE_NOT_EXIST = new ErrorStatus("9312", "文件不存在");
    public static final ErrorStatus IS_NOT_A_FILE = new ErrorStatus("9313", "不是一个文件");
    public static final ErrorStatus FILE_NOT_FOUND = new ErrorStatus("9314", "文件未发现");
    public static final ErrorStatus GROUPNO_FAIL = new ErrorStatus("9201", "保单号不存在");


    public static final ErrorStatus NOT_SELECT = new ErrorStatus ("1002","未选中数据");
    public static final ErrorStatus USER_EXISTD = new ErrorStatus ("1001","该证件号码已被已存在");
    public static final ErrorStatus INCOMPLETE_INFO = new ErrorStatus ("1003","抱歉！ 所提交信息息不全，请检查重试");
    public static final ErrorStatus NOT_DATA = new ErrorStatus ("0003","数据为空");
    public static final ErrorStatus NEIGHBORHOOD_REPEATED = new ErrorStatus ("1000","居委会已存在,不能重复添加!");
    public ApiGlobalErrorDefinition() {

    }
}
